/**
 * git do not control webim.config.js
 * everyone should copy webim.config.js.demo to webim.config.js
 * and have their own configs.
 * In this way , others won't be influenced by this config while git pull.
 *
 */

// for react native
// var location = {
//     protocol: "https"
// }


var config = {
    socketServer: '//im-api-v2.easemob.com/ws',    // socket Server地址

    restServer: '//a1.easemob.com',               // rest Server地址

    xmppURL: '//im-api.easemob.com',            // xmpp Server地址，对于在console.easemob.com创建的appkey，固定为该值
    apiURL: '//a1.easemob.com',          // rest Server地址，对于在console.easemob.com创建的appkey，固定为该值
    /*
     * Application AppKey
     */
    appKey: "1105200604113169#libeile-custom",

    isAutoLogin: true,                 //是否自动登录

    isHttpDNS: true,                          // 3.0 SDK支持，防止DNS劫持从服务端获取XMPPUrl、restUrl

    isMultiLoginSessions: false,              // 是否开启多页面同步收消息，注意，需要先联系商务开通此功能

    isDebug: true,                           // 打开调试，会自动打印log，在控制台的console中查看log

    autoReconnectNumMax: 5,                   // 断线重连最大次数

    /**
     * the interval secons between each atuo reconnectting.
     * works only if autoReconnectMaxNum >= 2.
     */
    autoReconnectInterval: 2,

    heartBeatWait: 30000,                     // 心跳间隔（只在小程序中使用）

    delivery: false,                           // 是否发送已读回执

    useOwnUploadFun: false,         // 是否使用自己的上传方式（如将图片文件等上传到自己的服务器，构建消息时只传url）
    /*
     * Application AppKey
     */
    //appkey:"gdpwq123#ceshi",


    /*
     * Whether to use HTTPS
     * @parameter {Boolean} true or false
     */
    https: false,

    /**
     * Whether to show logs in strophe
     * @parameter {Boolean} true or false
     */
    isStropheLog: false,
}
export default config
